<!DOCTYPE html>
<html class="anketa-{{ anketa_instance }}">
    <head>
        {% block head %}
        {% block metas %}
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        {% endblock %}
        {% block stylesheets %}
        <link rel="stylesheet" href="{{ asset('bundles/anketa/css/reset.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/anketa/css/base.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/anketa/css/main.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/anketa/css/mobile.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/anketa/css/color.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/anketa/css/stars.css') }}" type="text/css" media="all" />
        <link rel="stylesheet" href="{{ asset('bundles/anketa/css/stats.css') }}" type="text/css" media="all" />
        {% endblock %}
        {% block scripts %}
        <script type="text/javascript" src="{{ asset('bundles/anketa/js/jquery.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/anketa/js/mobile.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/anketa/js/stars.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/anketa/js/stats.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/anketa/js/filter.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/anketa/js/unload.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/anketa/js/welcome.js') }}"></script>
        <script type="text/javascript" src="{{ asset('bundles/anketa/js/expanding.js') }}"></script>
        {% endblock %}
        <!--[if lte IE 7]>
        <style>
            .container { width: 60em; }
            .clearfix { zoom: 1; }
        </style>
        <![endif]-->
        <title>{{ block('title') == '' ? '' : block('title') ~ ' - ' }}Anketa {{ skratka_fakulty }} {{ anketa_instance != 'prod' ? ' (' ~ anketa_instance ~ ')' : '' }}</title>
        <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
        {% endblock %}
    </head>
    <body{{ block('sidebar') == '' ? ' class="no-sidebar"' : '' }}>
        {% block body %}
        <div id="container">
            <div id="user-bar">
                {% block user_bar %}{% endblock %}
            </div>
            <div id="section-bar">
                {% block section_bar %}
                    {% if app.request.get('_route_params') is not null %}
                        {% if app.request.locale != 'sk' %}
                            <a class="section" href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'sk'})) }}">Slovensky</a>
                        {% else %}
                            <a class="section" href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}">English</a>
                        {% endif %}
                    {% endif %}
                    <a href="{{ path('faq') }}" class="section">FAQ</a>
                {% endblock %}
            </div>

            <div id="header">
                {% block header %}
                    <h1><a href="{{ path('homepage') }}">Anketa <strong>{{ skratka_fakulty }}</strong>{% if anketa_instance != 'prod'
                      %} <span id="instance">(<span>{{ anketa_instance }}</span>)</span>{% endif
                    %}</a></h1>
                {% endblock %}
            </div>

            <div id="sidebar">
            <div id="sidebar-inner">
                {% block sidebar %}{% endblock %}
            </div>
            </div>

            <div id="content" class="clearfix">
                {% if app.session.started %}
                    {% for flashMessage in app.session.flashbag.get('error') %}
                        <div class="flash-message flash-error">
                            {{ flashMessage }}
                        </div>
                    {% endfor %}
                    {% for flashMessage in app.session.flashbag.get('success') %}
                        <div class="flash-message flash-success">
                            {{ flashMessage }}
                        </div>
                    {% endfor %}
                {% endif %}
                {% block content %}{% endblock %}
            </div>

            <div id="footer">
                &copy; <a href="http://svt.fmph.uniba.sk/">{{ trans('base.svt') }}</a> 2011,2012
            </div>
        </div>
        {% endblock %}
    </body>
</html>
